package com.cos.feign.api;

import com.cos.vo.StockParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "goods" ,path = "/goods")
public interface StockFeign {

    @RequestMapping("/updateStock")
    public boolean updateStock(@RequestBody List<StockParam> stockParam);
}
